package configuration;

import enumeration.EnumCourseType;
import enumeration.EnumRobChannel;
import enumeration.EnumUserType;

public class RobConfiguration {
    /**
     * =========================================抢课发包参数配置项=========================================
     */
    public static String IP = "192.168.170.253";
    /**
     * 教务系统IP
     */
    public static String URL = "http://192.168.170.253";
    /**
     * 教务系统URL
     */
    public static String DEFAULT_2 = "/Default2.aspx"; /**Default2.aspx 可留空 两个页面看情况用*/

    /**
     * 抢课通道 专科/本科
     */
    public static EnumRobChannel ROB_CHANNEL = EnumRobChannel.UNDERGRADUATE;

    /**
     * 抢课类型 体育/公选
     */
    public static EnumCourseType ROB_COURSE_TYPE = EnumCourseType.PE;

    /**
     * 登录通道
     * OO_USER 老方法绕验证码
     * BETTER_USER 新方法自动识别验证码
     */
    public static EnumUserType ROB_LOGIN_MODE = EnumUserType.OO_USER;


    /**
     * 专科/本科账号最大长度
     */
    public static Integer UNDERGRADUATE_USERNAME_MAX_LENGTH = 10;
    public static Integer SPECIALITY_USERNAME_MAX_LENGTH = 12;
    public static Integer USERNAME_MAX_LENGTH = 10;


    /**
     * =========================================程序测试=========================================
     */
    public static final boolean isDisplay = true;     /**类似debug的消息开关*/
    //    public static final int retryNums = 20;
    /**=========================================验证码识别配置=========================================*/

    /**
     * 正方教务验证码URL链接
     */
    public static String SECRETCODE_URL = URL + "/CheckCode.aspx";

    public static String IMG_ACCOUNT_CODE = "E:\\robClassRes\\accountCode\\";

    public static String IMG_1K = "E:\\robClassRes\\img1K\\";
    public static String IMG_PNG_1K_ROOT = "E:\\robClassRes\\imgPNG1K";
    /**
     * 从正方教务验证码直接获取的验证码GIF格式图片
     */
    public static String IMG_PNG_1K = "E:\\robClassRes\\imgPNG1K\\";
    public static String IMG_TEST = "E:\\robClassRes\\imgTEST\\";
    /**
     * PNG格式的验证码图片
     */
    public static String IMG_PNG_TEST = "E:\\robClassRes\\imgPNGTEST\\";
    /**
     * 验证码识别测试集
     */
    public static String IMG_PNG_TEST_RE = "E:\\robClassRes\\imgPNGTESTRe\\";
    /**
     * PNG格式验证码识别测试集
     */
    public static String TRAIN_ROOT = "E:\\robClassRes\\train";
    /**
     * 验证码识别测试集识别结果
     */
    public static String TRAIN = "E:\\robClassRes\\train\\";  /**验证码识别测试集识别结果*/


    /**
     * =========================================抢课资源 线程调度=========================================
     */

    /**
     * 疯狂模式
     */
    public static boolean isCrazyRobMode = true;

    /**
     * 抢课数量 用于限制抢课预初始化资源数量 -> PERobber-> viewStateAndListBoxAndCookieList 不得超过此参数二倍量
     */
    public static Integer ROB_COURSE_NUM = 10;

    /**
     * 提前定时抢课资源初始化时间 提前六小时吧
     */
    public static Integer ROB_PRE_INIT_TIME_COURSE_PE = 1000 * 60 * 60 * 6;
}
